package com.cxx.home.dto.ledger;

import com.cxx.common.PlainView;
import com.cxx.common.ReadView;
import com.fasterxml.jackson.annotation.JsonView;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;

@Getter
@Setter
@JsonView(PlainView.class)
public class LedgerDto {
    @Schema(description = "id")
    @JsonView(ReadView.class)
    private Long id;

    @Schema(description = "账本")
    private String book;

    @Schema(description = "类别")
    private String category;

    @Schema(description = "内容")
    private String content;

    @Schema(description = "价格")
    private Double price;

    @Schema(description = "数量")
    private Integer number;

    @Schema(description = "总价")
    @JsonView(ReadView.class)
    private Double totalPrice;

    @Schema(description = "单位")
    private String unit;

    @Schema(description = "付款人")
    private String payer;

    @Schema(description = "供应商")
    private String provider;

    @Schema(description = "图片")
    private String imageUrl;

    @Schema(description = "备注")
    private String remark;
}
